package Day217;

public class LianXi {
    public static void main(String[] args) {
        say();

        sayHi("CL");

        sayHello("HK",25);

        double a=get();
        System.out.println(a);

        int b=plus(5,6);
        System.out.println(b);

        int m=30;int n=20;int c=plus(m,n);
        System.out.println(c);

        int[] d=aArray(5,100);
        System.out.println("数组d的长度:"+d.length);

        int[] e=aArray(3,10);
        for(int i=0;i<e.length;i++){
            System.out.print(e[i]+"\t");
        }
    }

    public static void say(){
        System.out.println("你好啊,我叫ZJ,今年25岁了");
    }
    public static void sayHi(String name){
        System.out.println("你好啊,我叫"+name+",今年25岁了");
    }
    public static void sayHello(String name,int age){
        System.out.println("你好啊,我叫"+name+",今年"+age+"岁了");
    }
    public static double get(){
        return 66.6;
    }
    public static int plus(int a,int b){
        int c=a+b;
        return c;
    }
    public static int[] aArray(int an,int bn){
        int[] a=new int[an];
        for(int i=0;i<a.length;i++){
            a[i]=(int)(Math.random()*bn);
        }
        return a;
    }








}
